public class Words
{
	public static void main (String [] args)
	{
		Dictionary webster = new Dictionary();
		webster.setPages(1000);
		System.out.println ("Number of pages:" + webster.getPages());
		System.out.println ("Number of definitions:" + webster.getDefinitions());
		System.out.println ("Dedinitions per page:" + webster.computeRatio());
	}
}
/*	class Book
	{
		protected int pages = 1500;
		public void setPages (int numPages)
		{
			Pages = numPages;
		}
		public int getPages()
		{
			return pages;
		}
	}
	class Dictionary extends Book
	{
		private int definitions = 52500;
		public double computeRatio ()
		{
			return definitions / pages;
		}
		public void setDefinitions (int numDefinitions)
		{
			definitions = numDefinitions;
		}
		public int getDefinitions ()
		{
			return definitions;
		}
*/	

